const  path=require('path');
module.exports={
    context:path.resolve(__dirname,'./component'),
    entry:{
        app:'./app.js'
    },
    output:{
        path:path.resolve(__dirname,'./dist'),
        filename:'bundle.js'
    },
    module: {
        loaders:[
            {
                test: /\.js[x]?$/,
                exclude: /node_modules/,
                loader: 'babel-loader?presets[]=es2015&presets[]=react'
            },
            {   test: /\.css$/,
                loader: "style-loader!css-loader" }
        ]
    }
}